const mongoose = require('mongoose')
const Schema = mongoose.Schema
const { ObjectId, String, Number, Array, Date } = Schema.Types

const shop = Schema({
    'proid': ObjectId,
    'brand': String,
    'category': String,
    'proname': String,
    'originprice': Number,
    'sales': Number,
    'stock': Number,
    'desc': String,
    'issale': Boolean,
    'isrecommend': Boolean,
    'discount': Number,
    'isseckill': Boolean,
    'swiper': Array,
    'time': Date,
    'operation': Date
})

module.exports = shop
